package main.java.game.command;

import main.java.game.Battle;
import main.java.game.combatant.Hero;

/**
 * @author  alumno
 */
public class ChooseHero implements BattleCommand {
	/**
	 * @uml.property  name="hero"
	 * @uml.associationEnd  
	 */
	private Hero hero;
	/**
	 * @uml.property  name="battle"
	 * @uml.associationEnd  
	 */
	private Battle battle;
	
	public ChooseHero(Battle battle, Hero hero){
		this.battle=battle;
		this.hero=hero;
	}	

	@Override
	public void execute() {
		this.battle.setHero(hero);
	}

	@Override
	public Battle getAssociatedBattle() {
		return battle;
	}

}
